package com.yhos.platform.oopston.web.api.dto.oopston;

import com.yhos.platform.oopston.core.annotation.NotNullValid;
import com.yhos.platform.oopston.core.dto.BaseOrderCreateRequestDTO;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

public class OrderCreateRequestApiDTO extends BaseOrderCreateRequestDTO {

    @ApiModelProperty(value = "订单类型（1：仓储订单；2：转运订单）", required = true)
    @NotNullValid(message = "订单类型不能为空")
    private String orderType;

    @ApiModelProperty(value = "电子签名（0：不需要；1：需要）", required = true)
    @NotNullValid(message = "订单类型不能为空")
    private String signType;

    @ApiModelProperty(value = "仓储ID，为转运订单时填0", required = true)
    private String warehouseId;

    @ApiModelProperty(value = "包裹信息")
    @NotNullValid(message = "包裹信息不能为空")
    private List<OrderPackageCreateRequestApiDTO> orderPackages;

    @ApiModelProperty(value = "产品信息 根据实际发货种类")
    @NotNullValid(message = "产品信息不能为空")
    private List<OrderSkuCreateRequestApiDTO> orderProducts;

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public List<OrderPackageCreateRequestApiDTO> getOrderPackages() {
        return orderPackages;
    }

    public void setOrderPackages(List<OrderPackageCreateRequestApiDTO> orderPackages) {
        this.orderPackages = orderPackages;
    }

    public List<OrderSkuCreateRequestApiDTO> getOrderProducts() {
        return orderProducts;
    }

    public void setOrderProducts(List<OrderSkuCreateRequestApiDTO> orderProducts) {
        this.orderProducts = orderProducts;
    }
}
